package com.fowo.api.model.product.spu.sub.attribute;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * SPU包含产品属性 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class ProductSpuSubAttributeImportPo {

  /** 所属SPU包含产品 */
  @ExcelProperty("所属SPU包含产品")
  @Size(max = 500, message = "所属SPU包含产品长度不能超过500")
  private String productSpuSubIdProductName;

  @ExcelIgnore
  @Schema(title = "所属SPU包含产品")
  private String productSpuSubId;

  /** 属性id */
  @ExcelProperty("属性id")
  @LongString(message = "属性id数值格式不正确", label = "属性id")
  private String attributeId;
}
